<h1>Listing stories</h1>

<table>
  <tr>
    <th>Iteration</th>
    <th>Name</th>
    <th>Description</th>
    <th>Work units est</th>
    <th>Completed</th>
    <th>Created by</th>
    <th>Updated by</th>
  </tr>

<% for story in @stories %>
  <tr>
    <td><%=h story.iteration_id %></td>
    <td><%=h story.name %></td>
    <td><%=h story.description %></td>
    <td><%=h story.work_units_est %></td>
    <td><%=h story.completed %></td>
    <td><%=h story.created_by %></td>
    <td><%=h story.updated_by %></td>
    <td><%= link_to 'Show', story %></td>
    <td><%= link_to 'Edit', edit_story_path(story) %></td>
    <td><%= link_to 'Destroy', story, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New story', new_story_path %>
